package cn.tedu.charging.order.mqtt;

import cn.tedu.charging.order.feign.CostClient;
import cn.tedu.charging.order.feign.DeviceClient;
import cn.tedu.charging.order.mapper.BillFailMapper;
import cn.tedu.charging.order.mapper.BillSuccessMapper;
import cn.tedu.charging.order.repository.ProgressEsRepository;
import cn.tedu.charging.order.websocket.WebSocketServer;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;


@Component
@Data
public class MqttContext {
    //回调函数用什么,就给上下文传什么
    @Autowired
    private MySerializer mySerializer;
    //订单mapper
    @Autowired
    private BillSuccessMapper billSuccessMapper;
    @Autowired
    private BillFailMapper billFailMapper;
    //远程服务调用 deviceClient
    @Autowired
    private DeviceClient deviceClient;
    @Autowired
    private CostClient costClient;
    @Autowired
    private WebSocketServer webSocketServer;
    @Autowired
    private ProgressEsRepository progressEsRepository;
    @Autowired
    private RedisTemplate redisTemplate;
}
